﻿namespace MQTTServer.Models
{
    /// <summary>
    /// 开门确认信息回复
    /// </summary>
    public class UnlockAck
    {
        /// <summary>
        ///  开门确认信息回复
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 消息 id,区分每一条消
        /// </summary>
        public string MessageId { get; set; }

        /// <summary>
        ///  UnlockAckInfo
        /// </summary>
        public UnlockAckInfo Info { get; set; }
    }

    public class UnlockAckInfo
    {
        /// <summary>
        ///  预留Id
        /// </summary>
        public string? uid { get; set; }
        /// <summary>
        /// 一体机设备号 id,返回值
        /// </summary>
        public string? FacesluiceId { get; set; }
        /// <summary>
        ///   操作结果“ok”/“fail
        /// </summary>
        public string result { get; set; }
        /// <summary>
        ///   当 result 为“fail”时，错误信息
        /// </summary>
        public string detail { get; set; }
    }
}